package com.ysqcould.allocation.domain;

import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 移动办公子模块名称对象 t_submodule
 * 
 * @author jcd
 * @date 2022-09-19
 */
public class Submodule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 协会id */
    @Excel(name = "协会id")
    private Long asId;

    /** 办公名称 */
    @Excel(name = "办公名称")
    private String workName;

    /** 排序位置 */
    @Excel(name = "排序位置")
    private Long place;

    /** 内容类型：2资讯发布，3活动创建，4会议发布，5通用任务，6公文发布，7协同办公，8供需发布，9优惠信息 */
    @Excel(name = "内容类型：2资讯发布，3活动创建，4会议发布，5通用任务，6公文发布，7协同办公，8供需发布，9优惠信息")
    private Long type;

    /** 状态（字典 0正常 1冻结 2删除） */
    @Excel(name = "状态", readConverterExp = "字=典,0=正常,1=冻结,2=删除")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAsId(Long asId) 
    {
        this.asId = asId;
    }

    public Long getAsId() 
    {
        return asId;
    }
    public void setWorkName(String workName) 
    {
        this.workName = workName;
    }

    public String getWorkName() 
    {
        return workName;
    }
    public void setPlace(Long place) 
    {
        this.place = place;
    }

    public Long getPlace() 
    {
        return place;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("asId", getAsId())
            .append("workName", getWorkName())
            .append("place", getPlace())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .toString();
    }
}
